home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / CALib & You… / Source / CASample / CAS_Drag.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-07  |  1.3 KB  |  62 lines  |  [TEXT/MPS ]

  1. /*
  2.  
  3.     File:        CAS_Drag.h
  4.  
  5.     Contains:    Constants and public function prototypes for CAS_Drag.c
  6.  
  7.     Written by:    David H Nelson
  8.  
  9.     Copyright © 1993-1995 ComponentWorks, All rights reserved.
  10.  
  11.     Change History (most recent first):
  12.  
  13.          <1>     2/14/95    SJF        first checked in
  14.          <1>     11/20/93    DHN        Created.
  15.  
  16. */
  17.  
  18. #if !defined(_H_CAS_Drag)
  19. #define _H_CAS_Drag
  20.  
  21.  
  22. #if defined(__cplusplus)
  23. extern "C"
  24. {
  25. #endif
  26.  
  27. pascal OSErr    Drag_DragReceiveHandler(    WindowPtr        theWindow,
  28.                                             void*            handlerRefCon,
  29.                                              DragReference    theDrag);
  30.                                   
  31. pascal OSErr    Drag_DragTrackingHandler(    short            message,
  32.                                             WindowPtr        theWindow,
  33.                                                void*            handlerRefCon,
  34.                                                DragReference    theDrag);
  35.  
  36. pascal OSErr    Drag_DragSendDataProc(        FlavorType        theType,
  37.                                             void*            refCon,
  38.                                             ItemReference    theItem,
  39.                                             DragReference    theDrag);
  40.  
  41. Boolean            DragItem(                    WindowPtr        theWindow,
  42.                                             EventRecord*    theEvent);
  43.  
  44. Boolean            Drag_DragItem(                WindowPtr        theWindow,
  45.                                             EventRecord        *theEvent );
  46.  
  47. Boolean            Drag_DragItemHasFlavor(        DragReference    theDrag,
  48.                                             ItemReference    itemID,
  49.                                             OSType            theType);
  50.  
  51.  
  52. Handle            Drag_GetFlavorData (        DragReference theDrag, 
  53.                                             ItemReference theItem,
  54.                                             OSType theType);
  55.                                             
  56. #if defined(__cplusplus)
  57. }
  58. #endif
  59.  
  60.  
  61. #endif
  62.